printing: Fix memory leak when listing Avahi printers
authorMarek Kasik <mkasik@redhat.com>
Fri, 22 Nov 2013 10:31:25 +0000 (11:31 +0100)
committerMarek Kasik <mkasik@redhat.com>
Mon, 25 Nov 2013 09:27:39 +0000 (10:27 +0100)
commit118b09c68c6cd51f5b4ffc3125310cbefb8b4baf
treeb611a11b7989c5913f540d763c7e6fda6e4830b8
parent543b840a80a18b03c67f94d39c190c21e983a667
printing: Fix memory leak when listing Avahi printers

Return values of g_variant_get_child_value() were not unreffed
correctly together with one value returned by g_variant_get().
Use g_variant_get_data() instead of copying each byte separately.

https://bugzilla.gnome.org/show_bug.cgi?id=712799
modules/printbackends/cups/gtkprintbackendcups.c